package com.zhangji.springcloud;

import com.zhangji.myrule.MyLBRule01;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @Description: 主启动类
 * @Author: Zhang Ji
 * @Date: 2021/6/23 16:09
 * Created by IntelliJ IDEA.
 */
@SpringBootApplication
@EnableEurekaClient
@RibbonClient(name = "SPRINGCLOUD-PROVIDER-DEPT-8001HAHA",configuration = MyLBRule01.class)
// ZJTODO: 2021/6/25 自定义负载均衡 
public class DeptConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer_80.class,args);
    }
}
// http://localhost/consumer/dept/getall